//
//  RTJDiscoverListController.m
//  RuiTaiJinProject
//
//  Created by jayson on 2018/11/30.
//  Copyright © 2018年 leewei. All rights reserved.
//

#import "RTJDiscoverListController.h"
#import "RTJDiscoverListCell.h"

@interface RTJDiscoverListController ()
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation RTJDiscoverListController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tableView.tableFooterView=[UIView new];
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.tableView.estimatedRowHeight=300;
    
    
    
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 4;
    
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return UITableViewAutomaticDimension;
    
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    static NSString * ID = @"RTJDiscoverListCell";
    
    RTJDiscoverListCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    
        if (!cell) {
            
            cell = [[NSBundle mainBundle] loadNibNamed:@"RTJDiscoverListCell" owner:self options:nil][0];
        }
        
    
    cell.selectionStyle=UITableViewCellSelectionStyleNone;
    return  cell;
    
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    
}



@end
